'use strict'


/* let ZhuCe=document.getElementsByTagName(a); */


function btn_login(){
  


   let username= $('[name=username]').val();
   let password= $('[name=password]').val();

   
  
    
    let obj={
        username,
        password
    }



    $.post('http://localhost:3000/login',obj,(res)=>{
    
        if(res==='登录成功'){
            window.location.href='./index.html'
        }else{
            alert('用户名或密码有误！');
        }

    })

}

function ZhuCe(){
    
}